﻿using SqlSugar;

namespace MyCrawlerDemo
{
    [SplitTable(SplitType.Year)]
    [SugarTable("Commodity_{year}{month}{day}")]
    public class JdCommodity
    {
        [SugarColumn(IsPrimaryKey = true, ColumnDescription = "主键")]
        public int Id { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "名称")]
        public string? Name { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "地址")]
        public string? Url { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "目录id")]
        public long CategoryId { get; set; } = 0;
        [SugarColumn(ColumnDescription = "目录id")]
        public decimal Price { get; set; } = 0;
        [SplitField]
        public DateTime CreateDateTime { get; set; }
    }
}
